﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using Jayden.Dll.XmlScript;

namespace Jayden.Console.XmlScriptTest
{
	class Program
	{
		static void Main(string[] args)
		{
			XmlDocument document = new XmlDocument();
			document.Load("Script.xml");

			XmlScriptLoader loader = new XmlScriptLoader();
			XmlExpression expression = loader.LoadExpression(document.DocumentElement);
			object value = expression.GetValue();
			System.Console.WriteLine("expression value: {0}", value);


			System.Console.WriteLine();
			System.Console.Write("=== press any key to exit ===");
			System.Console.ReadKey(true);
		}
	}
}
